import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('content_setting')
export class YaContentSetting {
  @Column({
    name: 'mcolor',
    type: 'varchar',
    length: 255,
    nullable: true,
  })
  mcolor: string;

  @Column({
    name: 'color',
    type: 'varchar',
    length: 255,
    nullable: true,
  })
  color: string;

  @Column({
    name: 'domain',
    type: 'varchar',
    length: 255,
    nullable: true,
    comment: '域名',
  })
  domain: string;

  @Column({
    name: 'iconUrl',
    type: 'varchar',
    length: 255,
    nullable: true,
    comment: 'icon链接',
  })
  iconUrl: string;

  @PrimaryGeneratedColumn({
    name: 'setting_id',
    type: 'int',
    comment: '设置id',
  })
  settingId: number;

  @Column({
    name: 'favicon_id',
    type: 'int',
    default: 0,
    comment: 'favicon文件id',
  })
  faviconId: number;

  @Column({
    name: 'logo_id',
    type: 'int',
    default: 0,
    comment: 'logo文件id',
  })
  logoId: number;

  @Column({
    name: 'name',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '名称',
  })
  name: string;

  @Column({
    name: 'title',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '标题',
  })
  title: string;

  @Column({
    name: 'keywords',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '关键词',
  })
  keywords: string;

  @Column({
    name: 'description',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '描述',
  })
  description: string;

  @Column({
    name: 'icp',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '备案号',
  })
  icp: string;

  @Column({
    name: 'copyright',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '版权',
  })
  copyright: string;

  @Column({
    name: 'offi_id',
    type: 'int',
    default: 0,
    comment: '公众号二维码文件id',
  })
  offiId: number;

  @Column({
    name: 'mini_id',
    type: 'int',
    default: 0,
    comment: '小程序码文件id',
  })
  miniId: number;

  @Column({
    name: 'address',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '地址',
  })
  address: string;

  @Column({
    name: 'tel',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '电话',
  })
  tel: string;

  @Column({
    name: 'fax',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '传真',
  })
  fax: string;

  @Column({
    name: 'mobile',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '手机',
  })
  mobile: string;

  @Column({
    name: 'email',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '邮箱',
  })
  email: string;

  @Column({
    name: 'wechat',
    type: 'varchar',
    length: 255,
    default: '',
    comment: '微信',
  })
  wechat: string;

  @Column({
    name: 'qq',
    type: 'varchar',
    length: 255,
    default: '',
    comment: 'QQ',
  })
  qq: string;

  @Column({
    name: 'is_api_content',
    type: 'tinyint',
    default: 0,
    comment: '是否开启前台内容功能，1是0否',
  })
  isApiContent: number;

  @Column({
    name: 'content_default_img_id',
    type: 'int',
    default: 0,
    comment: '内容默认图片id',
  })
  contentDefaultImgId: number;

  @Column({
    name: 'content_default_img_open',
    type: 'tinyint',
    default: 0,
    comment: '内容默认图片是否开启，1是0否',
  })
  contentDefaultImgOpen: number;

  @Column({
    name: 'category_default_img_id',
    type: 'int',
    default: 0,
    comment: '分类默认图片id',
  })
  categoryDefaultImgId: number;

  @Column({
    name: 'category_default_img_open',
    type: 'tinyint',
    default: 0,
    comment: '分类默认图片是否开启，1是0否',
  })
  categoryDefaultImgOpen: number;

  @Column({
    name: 'tag_default_img_id',
    type: 'int',
    default: 0,
    comment: '标签默认图片id',
  })
  tagDefaultImgId: number;

  @Column({
    name: 'tag_default_img_open',
    type: 'tinyint',
    default: 0,
    comment: '标签默认图片是否开启，1是0否',
  })
  tagDefaultImgOpen: number;

  @Column({
    name: 'create_uid',
    type: 'int',
    default: 0,
    comment: '添加用户id',
  })
  createUid: number;

  @Column({
    name: 'update_uid',
    type: 'int',
    default: 0,
    comment: '修改用户id',
  })
  updateUid: number;

  @Column({
    name: 'create_time',
    type: 'datetime',
    nullable: true,
    comment: '添加时间',
  })
  createTime: Date;

  @Column({
    name: 'update_time',
    type: 'datetime',
    nullable: true,
    comment: '修改时间',
  })
  updateTime: Date;

  @Column({
    name: 'douyin_id',
    type: 'int',
    default: 0,
    comment: '抖音二维码',
  })
  douyinId: number;

  @Column({
    name: 'xhs_id',
    type: 'int',
    default: 0,
    comment: '小红书二维码',
  })
  xhsId: number;

  @Column({
    name: 'zhanzhangapi',
    type: 'varchar',
    length: 256,
    nullable: true,
    comment: '站长推送api',
  })
  zhanzhangapi: string;

  @Column({
    name: 'statistics',
    type: 'varchar',
    length: 1000,
    nullable: true,
    comment: '统计代码',
  })
  statistics: string;
}